import http from "@/utils/http";

export function getBannerAPI(distributionSite = 1) {
  return http({
    url: "/home/banner",
    data: { distributionSite },
  });
}

export function getClassAPI() {
  return http({
    url: "/home/category/mutli",
  });
}

export function getHotAPI() {
  return http({
    url: "/home/hot/mutli",
  });
}

export function getNewAPI() {
  return http({
    url: "/home/new",
  });
}

export function getGuessLikeAPI(data) {
  return http({
    url: "/home/goods/guessLike",
    data,
  });
}

export function getAllGoodsAPI(data, url) {
  return http({
    url,
    data,
  });
}
